package com.rain;

import com.rain.bean.TableInfo;
import com.rain.builder.*;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

public class RunApplication {

    public static void main(String[] args) throws SQLException, IOException {
        List<TableInfo> tables = BuildTable.getTables();
        for (TableInfo table : tables) {
            BuildPo.execute(table);
            BuildQuery.execute(table);
            BuildMapper.execute(table);
            BuildMapperXml.execute(table);
            BuildService.execute(table);
            BuildServiceImpl.execute(table);
            BuildController.execute(table);
        }
        BuildBase.execute();
    }
}
